package com.letoken.platform.pub.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

import java.util.HashMap;
import java.util.Map;


public enum BalanceTypeEnum {


    TRANSFER_IN("转入"),
    TRANSFER_OUT("转出"),

    INCOME("收益"),

    ;

    private String desc;

    BalanceTypeEnum(String desc) {
        this.desc = desc;
    }

    public static String getDesc(int index){
        for (BalanceTypeEnum e : BalanceTypeEnum.values()){
            if (index == e.ordinal()){
                return e.desc;
            }
        }
        return "";
    }
}
